import axios from '../axios.js'


export default {
    //获取订单
    getsOrders() {
        return axios({
            url: "/orders/getsOrders",
            method: "get",
        })

    },
    //修改订单
    confirmAlterOrders(data) {
        return axios({
            url: '/orders/confirmAlterOrders',
            method: 'post',
            data,
        })
    },

    //根据ID删除订单
    deleteOrders(_id) {
        return axios({
            url: "/orders/deleteOrders",
            method: 'post',
            _id
        })
    }

}